package com.sphd.emanu.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sphd.emanu.R;
import com.sphd.emanu.pojo.login.User;

import java.util.List;

/**
 * @Author Hu
 * @Time 2017/7/25 --16:10.
 * @Email 87683202@qq.com
 */
public class StaffAdapter extends BaseQuickAdapter<User,BaseViewHolder> {
    public StaffAdapter(@LayoutRes int layoutResId, @Nullable List<User> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, User item) {

        helper
                .setText(R.id.staff_name,item.getUsername())
                .setText(R.id.staff_phone,item.getMobile());
    }
}
